<template>
  <BaseEcharts :options="options" :map="map" />
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import BaseEcharts from '@/components/BaseEcharts/BaseEcharts.vue'
import { ECOption, MapParams } from '@/components/BaseEcharts/config'

const map: MapParams = {
  name: 'china',
  geoJsonURL: 'https://geojson.cn/api/data/china.json',
}

const options = computed<ECOption>(() => {
  return {
    series: {
      type: 'map',
      map: 'china',
      data: [],
    },
  }
})
</script>

<style lang="less" scoped></style>
